package gui;

import java.awt.Component;
import javax.swing.DefaultListCellRenderer;
import javax.swing.ImageIcon;
import javax.swing.JLabel;
import javax.swing.JList;

/**
 *
 * @author Mariano Zapata
 */
public class RenderListaAgenda extends DefaultListCellRenderer {
    
    public RenderListaAgenda() {
        super();
    }
    
    @Override
    public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,
            boolean cellHasFocus)
    {
        JLabel retorno= (JLabel) super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
        ImageIcon icono= new ImageIcon(getClass().getResource("/gui/icono/nota.png"));
        retorno.setIcon(icono);
        return retorno;
    }
}
